#!/usr/bin/env python3
# coding: utf-8

from __future__ import unicode_literals, division, print_function
import os
import sys


def solution(filename):
    """
    least common multiple
    """
    F = open(filename, 'r')
    numbers = [int(x) for x in F.readline().strip().split()]
    divisors = [{} for x in range(len(numbers))]
    i = 0
    while i < len(numbers):
        num = numbers[i]
        divisor = 2
        while divisor <= num:
            if num % divisor == 0:
                num //= divisor
                if divisors[i].get(divisor, None) is None:
                    divisors[i][divisor] = 1
                else:
                    divisors[i][divisor] += 1
            else:
                divisor += 1
        i += 1
    lcm = 1
    lcm_inf = {}
    for num_div in divisors:
        for div in num_div.items():
            # div[0] - multiplier, div[1] - exponent
            if div[0] in lcm_inf.keys():
                if div[1] > lcm_inf[div[0]]:
                    diff = div[1] - lcm_inf[div[0]]
                    lcm *= div[0] ** diff
                    lcm_inf[div[0]] += diff
            else:
                lcm *= div[0] ** div[1]
                lcm_inf[div[0]] = div[1]
    return lcm


if __name__ == "__main__":
    print(solution(sys.argv[1]))
